package cn.ranko.site.mapper;

import cn.ranko.site.model.SysPermissions;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface SysPermissionsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysPermissions record);

    int insertSelective(SysPermissions record);

    SysPermissions selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermissions record);

    int updateByPrimaryKey(SysPermissions record);

    List<SysPermissions> getSysPermissionsByUserIdAndParentId(HashMap params);

    List<SysPermissions> getSysPermissionsByParentId(String parentId);

    List<SysPermissions> getSysPermissionsActionAllByParentId(Long parentId);

    List<Map> selectAll();
}